package com.lanxiao.cloud.modules.oauth.infrastructure.enums;


import com.lanxiao.cloud.common.core.enums.BaseEnum;
import com.lanxiao.cloud.common.core.enums.StateEnum;

/**
 * @author ：qiaoliang
 * @date ：2021-09-07
 */
public enum TypeEnum implements BaseEnum<StateEnum, Integer> {
  SYSTEM(0, "系统"),
  MENU(1, "菜单"),
  BUTTON(2, "按钮");

  private final Integer value;

  private final String desc;

  TypeEnum(Integer value, String desc) {
    this.value = value;
    this.desc = desc;
  }

  @Override
  public Integer getValue() {
    return value;
  }

  @Override
  public String getDesc() {
    return desc;
  }
}
